# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1MigrateResourceRequestMigrateMlEngineModelVersionConfig do
  @moduledoc """
  Config for migrating version in ml.googleapis.com to Vertex AI's Model.

  ## Attributes

  *   `endpoint` (*type:* `String.t`, *default:* `nil`) - Required. The ml.googleapis.com endpoint that this model version should be migrated from. Example values: * ml.googleapis.com * us-centrall-ml.googleapis.com * europe-west4-ml.googleapis.com * asia-east1-ml.googleapis.com
  *   `modelDisplayName` (*type:* `String.t`, *default:* `nil`) - Required. Display name of the model in Vertex AI. System will pick a display name if unspecified.
  *   `modelVersion` (*type:* `String.t`, *default:* `nil`) - Required. Full resource name of ml engine model version. Format: `projects/{project}/models/{model}/versions/{version}`.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :endpoint => String.t() | nil,
          :modelDisplayName => String.t() | nil,
          :modelVersion => String.t() | nil
        }

  field(:endpoint)
  field(:modelDisplayName)
  field(:modelVersion)
end

defimpl Poison.Decoder,
  for:
    GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1MigrateResourceRequestMigrateMlEngineModelVersionConfig do
  def decode(value, options) do
    GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1MigrateResourceRequestMigrateMlEngineModelVersionConfig.decode(
      value,
      options
    )
  end
end

defimpl Poison.Encoder,
  for:
    GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1MigrateResourceRequestMigrateMlEngineModelVersionConfig do
  def encode(value, options) do
    GoogleApi.Gax.ModelBase.encode(value, options)
  end
end
